package com.mz.mattress.admin.service;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.enums.SmsEnum;

/**
 * 短信服务
 */
public interface SmsService {

    Result sendVerifyCode(String mobile, SmsEnum smsEnum);

    /**
     * 发送短信验证码
     * @param mobile
     * @param smsEnum
     * @return Result
     */
    Result sendSmsCode(String mobile, SmsEnum smsEnum);

    /**
     * 校验短信验证码
     * @param mobile
     * @param code
     * @param smsEnum
     * @return Result
     */
    Result validVerifyCode(String mobile, String code, SmsEnum smsEnum);

}
